package ast;

public class ChannelConstant extends Constant {

	private Label label;
	
	public ChannelConstant(String name, Type lb)
	{
		setName(name);
		label = (Label) lb;
	}
	
	public boolean isExternal()
	{
		return label.isExternal();
	}
	
	public Label getLabel() 
	{
		return label;
	}
	
	public void setLabel(Label l)
	{
		label = l;
	}
	
	public String toString()
	{
		return getName();
	}
}
